package cn.stylefeng.guns.modular.bi.service;


import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.bi.entity.KnowledgeBase;
import cn.stylefeng.guns.modular.bi.model.params.KnowledgeBaseParam;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.List;

/**
 * <p>
 * 实施问题知识库 服务类
 * </p>
 */
public interface KnowledgeBaseService extends IService<KnowledgeBase> {

    /**
     * 根据标题模糊搜索
     * @param title 标题关键词
     * @return 匹配的知识库列表
     */
    List<KnowledgeBase> searchByTitle(String title);

    LayuiPageInfo findPageBySpec(KnowledgeBaseParam knowledgeBaseParam);

    void add(KnowledgeBaseParam knowledgeBaseParam);

    void delete(KnowledgeBaseParam knowledgeBaseParam);

    void update(KnowledgeBaseParam knowledgeBaseParam);
}